<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<body>
	<form id="myform">
        <input type="text" name="username">
        <input type="password" name="password">
        <input type="submit">
    </form>
    <script src="./jquery.js"></script>
    <script>
    	// return 阻止函数的代码往下执行
    	// return false 是用于事件当中 = event.preventDefault()阻止默认行为 +event.stopPropgagation() 阻止冒泡

    	// function fn(a,b){
    	// 	if(typeof a != 'number' || typeof b != 'number'){
    	// 		alert('参数传入错误');
    	// 		return;
    	// 	}
    	// 	return a+b;
    	// }

    	// console.log(fn('abc',3));


    	$('#myform').on('submit',function(e){
    		console.log(123);
    		return false;
    	})
    </script>
</body>
</html>